﻿<UserControl x:Class="DiscoveryLogic.Analytics.Modules.LinkRules.LinkRuleTgtEntityFieldMappings"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Forms="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
    Height="300" Width="450" Loaded="UserControl_Loaded">
    <Border CornerRadius="10">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="35"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="35"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="160"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>

            <Label 
                Grid.Row="0" Grid.Column="0"
                Margin="5" VerticalAlignment="Top">Target entity:</Label>
            <ComboBox 
                Grid.Row="0" Grid.Column="1" Margin="9,5,20,0"
                x:Name="cboTgtEntityType" 
                VerticalAlignment="Top" MinWidth="100"
                SelectionChanged="cboTgtEntityType_SelectionChanged"></ComboBox>

            <WindowsFormsHost Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Margin="5">
                <Forms:DataGridView x:Name="dvTgtFieldMappings" Dock="Fill">
                    <Forms:DataGridView.Columns>
                        <Forms:DataGridViewTextBoxColumn HeaderText="Entity field" Width="100"/>
                        <Forms:DataGridViewComboBoxColumn HeaderText="Column name" Width="120" />
                    </Forms:DataGridView.Columns>
                </Forms:DataGridView>
            </WindowsFormsHost>

            <Label 
                Grid.Row="2" Grid.Column="0"
                Margin="5" VerticalAlignment="Top">Time stamp:</Label>
            <ComboBox 
                Grid.Row="2" Grid.Column="1" Margin="9,5,20,0"
                x:Name="cboTimeStampField" 
                VerticalAlignment="Top" MinWidth="100"
                SelectionChanged="cboTimeStampField_SelectionChanged"></ComboBox>

        </Grid>
    </Border>
</UserControl>
